package com.pojo;

import java.math.BigDecimal;

public class Car {
    /**
     * 汽车编号
     */
    private String id;
    /**
     * 汽车名称
     */
    private String name;
    /**
     * 备注
     */
    private String remark;
    /**
     * 品牌
     */
    private String brand;
    /**
     * 种类
     */
    private String type;
    /**
     * 单价
     */
    private BigDecimal price;
    /**
     * 是否可借
     */
    private boolean rent;
    /**
     * 是否上架
     */
    private boolean status;
    /**
     * 车牌号
     */
    private String cardNumber;
    /**
     * 车辆价值
     */
    private int carPrice;
    /**
     * 车辆颜色
     */
    private String color;

    public Car() {
    }

    public Car(String id, String name, String remark, String brand, String type, BigDecimal price, boolean rent, boolean status, String cardNumber, int carPrice, String color) {
        this.id = id;
        this.name = name;
        this.remark = remark;
        this.brand = brand;
        this.type = type;
        this.price = price;
        this.rent = rent;
        this.status = status;
        this.cardNumber = cardNumber;
        this.carPrice = carPrice;
        this.color = color;
    }

    @Override
    public String toString() {
        return id+"\t"+name+"\t"+remark+"\t"+brand+"\t"+type+"\t"+price+"\t"+rent;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public boolean isRent() {
        return rent;
    }

    public void setRent(boolean rent) {
        this.rent = rent;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public String getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(String cardNumber) {
        this.cardNumber = cardNumber;
    }

    public int getCarPrice() {
        return carPrice;
    }

    public void setCarPrice(int carPrice) {
        this.carPrice = carPrice;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
}
